import request from '@/utils/aliyunRequest';

const fmtAnswerApi = {};

fmtAnswerApi.fmtChart = (params) => {
	return request({
		url: '/aliyun-api/fmt-answer/fmt-chart',
		method: 'post',
		data: params,
	})
}
fmtAnswerApi.exportAnswers = () => {
	return request({
		url: '/aliyun-api/fmt-answer/export-answers',
		method: 'get',
		responseType: 'blob',
	})
}
fmtAnswerApi.syncFmtAnswers = () => {
	return request({
		url: '/aliyun-api/fmt-answer/sync-answers',
		method: 'get',
	})
}
fmtAnswerApi.page = (params) => {
	return request({
		url: '/aliyun-api/fmt-answer/page',
		method: 'post',
		data: params,
	})
}
fmtAnswerApi.detail = (id) => {
	return request({
		url: '/aliyun-api/fmt-answer/' + id,
		method: 'get',
	})
}

export default fmtAnswerApi